﻿using BBCore.Core.Models.BaseModels;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBCore.Application.Admins
{
    public interface ITempService
    {
        /// <summary>
        ///拼接的Sql语句返回Datatable 
        /// </summary>
        /// <param name="sql">拼接的Sql语句</param>
        /// <returns></returns>
        Task<DataTable> GetFqlToDtAsync(string sql);

        /// <summary>
        /// 根据菜单ID得到查询栏的信息
        /// </summary>
        /// <param name="authid">菜单ID</param>
        /// <returns></returns>
        Task<List<ControlDetails>> GetControlDetailsListByIdAsync(int authid);
        /// <summary>
        /// 新增一笔ControlDetails
        /// </summary>
        /// <param name="controlDetails">ControlDetails类</param>
        /// <returns></returns>
        Task Add_ControlDetailsAsync(ControlDetails controlDetails);
        /// <summary>
        /// 编辑一笔ControlDetails
        /// </summary>
        /// <param name="controlDetails">ControlDetails类</param>
        /// <returns></returns>
        Task Update_ControlDetailsAsync(ControlDetails controlDetails);
        /// <summary>
        /// 批量删除ControlDetails
        /// </summary>
        /// <param name="controlDetails">ControlDetails类</param>
        /// <returns></returns>
        Task Remove_ControlDetailsAsync(IEnumerable<ControlDetails> controlDetails);
    }
}
